package day2;

/**
 * ClassName：MyThread
 *
 * @Author：小鱼
 * @Create：2025-08-19 10:03
 */
public class MyThread extends Thread{
    @Override
    public void run(){
        //super.run();
        for (int i = 0; i < 10; i++) {
            System.out.println("在线程的run中");
            try {
                //这个方法有异常
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("i: "+i);
        }
    }


}
